I'm getting four W3C validation errors when hierarchical select is enabled.

# Error  Line 110, Column 702: end tag for "select" which is not finished .

…="edit-filter6-flat-select" ></select><div class="nojs"><input type="submit" 

✉

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
# Error Line 114, Column 63: there is no attribute "onClick" .

…e="Reset"class="form-submit" onClick="window.location = '/drupal/gallery';" /

✉

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 114, Column 35: XML Parsing Error: attributes construct error .

<input  type="button" value="Reset"class="form-submit" onClick="window.location 

✉
# Error Line 114, Column 35: XML Parsing Error: Couldn't find end of Start Tag input line 114 .

<input  type="button" value="Reset"class="form-submit" onClick="window.location 

#  <div class=" hierarchical-select-wrapper hierarchical-select-level-labels-style-none" id="hierarchical-select-0-wrapper"><div class="hierarchical-select clear-block"><div class="selects"><select name="filter6[hierarchical_select][selects][0]" class="form-select" id="edit-filter6-hierarchical-select-selects-0" ><option value="label_0" class=" level-label" selected="selected"></option><option value="none" class="">&lt;none&gt;</option><option value="**ALL**" class="has-no-children">&lt;all&gt;</option><option value="68" class="has-children">Russian Federation</option></select></div></div><select name="filter6[flat_select]" class="form-select flat-select" id="edit-filter6-flat-select" ></select><div class="nojs"><input type="submit" name="op" id="edit-filter6-nojs-update-button" value="Update" class="form-submit update-button" />
# <div class="help-text"><span class="warning">You don't have Javascript enabled.</span> <span class="ask-to-hover">Hover for more information!</span> But don't worry: you can still use this web site! You have two options:<div class="item-list"><ul class="solutions"><li><span class="highlight">enable Javascript</span> in your browser and then refresh this page, for a much enhanced experience.</li><li><span class="highlight">click the <em>Update</em> button</span> every time you want to update the selection.</li></ul></div></div></div></div>
# </div>
# </td><td><input type="submit" id="views_filters-submit" value="Submit" class="form-submit" />
# <input type="button" value="Reset"class="form-submit" onClick="window.location = '/drupal/gallery';" /></td> </tr>
# </tbody>
# </table>
CommentFileSizeAuthor
#6 hierarchical_select.module.patch505 bytesruloweb

Comments

wim leers’s picture

Category: support » bug
Priority: Normal » Minor
Status: Active » Postponed (maintainer needs more info)

This'll be fixed sooner if you figure out what's wrong ;) :)

wim leers’s picture

Title: w3c validation error » HTML is invalid
B.P.B’s picture

I thought you knew :)

All I know is that when I activate HS some W3C errors occur. Apparently its outputting xhtml tags in a non-standard format.

There are some CSS errors as well.

I gave up on HS awhile back due to bugs. I gave it another go recently and am very impressed by the module's evolution. Excellent work.

wim leers’s picture

Nope, I didn't know. But then again, I didn't really check that.

Because of http://wimleers.com/blog/how-much-is-too-much, this'll go faster if you provide a patch.

And thanks :) HS 3 is a major step up!

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Postponed (maintainer needs more info) » Closed (fixed)

Actually, all problems that you reference are problems that are obviously not related to Hierarchical Select. Closing this issue.

ruloweb’s picture

StatusFileSize
new505 bytes

Hi!

Looks like it is related with HS, sometimes the flat_select is rendered without any options, so W3C doesnt validate it. I made a patch which solve this problem.

The patch was made against 5.x-3.0-rc7 version.

Great work dude!

ruloweb’s picture

Status: Closed (fixed) » Needs review

forgot to change the status :P.

summit’s picture

Version: 5.x-3.0-rc6 » 5.x-3.0-rc7

subscriing, and setting to rc7 greetings, Martijn

wim leers’s picture

Status: Needs review » Closed (won't fix)

The patch in #6 makes HS work incorrectly. If nothing is selected, the flat_select is *supposed* to be empty. I may add a work-around for this in the future, but this is too low-priority to spend my time on.

ndgiang’s picture

Version: 5.x-3.0-rc7 » 6.x-3.x-dev

I disable all options in "Site Information -> Performance" of 6.x-3.x-dev version, and the errors disappeared. It works for me.